Decision Server REST API - ruleapps/{ruleappname}/{ruleappversion}/properties/{propertyname} Resource - PUT Method

Updates an existing property of a RuleApp identified by its name and version number. The new property value is passed in the request body. If the repository does not contain such a RuleApp or the property does not exist, the response body contains a specific error description and the HTTP status 202 is returned.

Sample Method Invocation

PUT /api/v1/ruleapps/{ruleappname}/{ruleappversion}/properties/{propertyname}

Parameters

None.

Request Content

The default content-type is plain/text.

MIME Type: application/octet-stream

(Schema to go here)
(Schema to go here)

Response Content

The default content-type is application/xml.

MIME Type: application/json

(Schema to go here)
+ View Example
{
  "succeeded" : true
}

MIME Type: application/xml

+ View Schema
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="" version="1.0">

  <xs:element name="result" type="restActionResult"/>

  <xs:complexType name="restActionResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="code" type="xs:string"/>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      <xs:element minOccurs="0" name="resource" type="xs:anyType"/>
      <xs:element name="succeeded" type="xs:boolean"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
+ View Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result>
    <succeeded>true</succeeded>
</result>

Status Codes

The method returns one of the following status codes:
Code Description
200 Successful completion.
400 The parameters are not valid or they are missing.
401 The caller is not authorized for this request.
403 The caller is not allowed to complete this request.
404 The resource does not exist.
406 The requested content type or content encoding is not supported.
500 A severe problem has occurred, programmer's details are provided.

Available Since

8.0.1.0

Parent Topic: ruleapps/{ruleappname}/{ruleappversion}/properties/{propertyname} Resource